
<div class="corp">
    <img src="img/logo.png"/>
</div>
<div style="padding-left: 37%;">
    <div style="float:left;" class="searchbutton" >
        <input type="image" src="img/ico_champ_recherche_loupe.png" name="submit" alt="Search"/> 
    </div>
    <div style="float:left; margin-top: 5px;" class="searchtext">
        <input type="text"/>
    </div>
</div>
<?php
$connexion = coUser();
if ($connexion) {
    echo'<a href="connexion.php" style="margin-top:10px;">Deconnexion ' . getPseudo() . '</a>';
    if (isAdmin() == '1') {
        echo '<br/><a href="admin.php">Administration</a>';
    }
} else {
    echo'<a href="connexion.php" style="margin-top:10px;">Connexion</a><br/>';
    echo'<a href="inscription.php">Inscription</a>';
}
?>
<div style="clear:both"></div>
<div class="ongCat">
    <span id="btHome"><a href="index.php"> <img src="img/HOME.png"/></a></span>
            <?php
            $pdo = ConnexionBDD();
            $sql = 'SELECT * FROM categorie';
            $req = $pdo->query($sql);
            while ($row = $req->fetch()) {
                echo '<span class="categorie"><a href="index.php?cat=' . $row['LIBCAT'] . '">' . $row['LIBCAT'] . '</a></span>';
            }
            $req->closeCursor();
            ?>
</div>
